package com.mini.service.impl;

import com.mini.dao.RankInfoMapper;
import com.mini.pojo.basic.RankInfo;
import com.mini.service.RankInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RankInfoServiceImpl implements RankInfoService {

    @Autowired
    private RankInfoMapper rankInfoMapper;

    public void addRankInfo(RankInfo rankInfo) {

        rankInfoMapper.addRankInfo(rankInfo);

    }

    public void updateRankInfo(RankInfo rankInfo) {
        rankInfoMapper.updateRankInfo(rankInfo);

    }

    public void removeRankInfo(int modlerankId) {
        rankInfoMapper.removeRankInfo(modlerankId);

    }

    public RankInfo queryRankInfo(int modlerankId) {
        return rankInfoMapper.queryRankInfo(modlerankId);
    }

    public List<RankInfo> queryAllRankInfo() {
        return rankInfoMapper.queryAllRankInfo();
    }
}
